package com.demo.repository;

import com.demo.model.User;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2023-02-11
 * Time: 16:01
 */

@Repository
public class UserRepository {


    @Bean
    public User user() {
        User user = new User();
        user.setAge(18);
        user.setName("张三");
        user.setSex("男");

        return user;
    }
}
